package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.HaDrugPurchase;

/**
 * 采购单Mapper接口
 * 
 * @author 鲍小伟
 * @date 2025-11-25
 */
public interface HaDrugPurchaseMapper 
{
    /**
     * 查询采购单
     * 
     * @param purchaseid 采购单主键
     * @return 采购单
     */
    public HaDrugPurchase selectHaDrugPurchaseByPurchaseid(Long purchaseid);

    /**
     * 查询采购单列表
     * 
     * @param haDrugPurchase 采购单
     * @return 采购单集合
     */
    public List<HaDrugPurchase> selectHaDrugPurchaseList(HaDrugPurchase haDrugPurchase);

    /**
     * 新增采购单
     * 
     * @param haDrugPurchase 采购单
     * @return 结果
     */
    public int insertHaDrugPurchase(HaDrugPurchase haDrugPurchase);

    /**
     * 修改采购单
     * 
     * @param haDrugPurchase 采购单
     * @return 结果
     */
    public int updateHaDrugPurchase(HaDrugPurchase haDrugPurchase);

    /**
     * 删除采购单
     * 
     * @param purchaseid 采购单主键
     * @return 结果
     */
    public int deleteHaDrugPurchaseByPurchaseid(Long purchaseid);

    /**
     * 批量删除采购单
     * 
     * @param purchaseids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHaDrugPurchaseByPurchaseids(Long[] purchaseids);
}
